package cn.com.thinvent.dispatch.dao;

import cn.com.thinvent.dispatch.entity.OrderDetail;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OrderDetailMapper {

    void insertOrderDetail(OrderDetail orderDetail);

    void updateOrderDetail(OrderDetail orderDetail);

    void deleteOrderDetail(@Param("id") String id);

    OrderDetail selectOrderDetailById(@Param("id") String id);

    List<OrderDetail> selectAllOrderDetails();

    List<OrderDetail> selectOrderDetailsByOrderId(@Param("orderId") String orderId);

    List<OrderDetail> selectOrderDetailsByOrderIds(@Param("orderIds") List<String> orderIds);
}
